/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VOL.Entity.SystemModels;

namespace VOL.Entity.DomainModels
{
    [Entity(TableCnName = "成品仓库",TableName = "MES_Warehouse")]
    public partial class MES_Warehouse:BaseEntity
    {
        /// <summary>
       ///id，主键，自增
       /// </summary>
       [Key]
       [Display(Name ="id，主键，自增")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int Id { get; set; }

       /// <summary>
       ///仓库编号
       /// </summary>
       [Display(Name ="仓库编号")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string warehouse_no { get; set; }

       /// <summary>
       ///仓库名称
       /// </summary>
       [Display(Name ="仓库名称")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string warehouse_name { get; set; }

       /// <summary>
       ///仓库位置
       /// </summary>
       [Display(Name ="仓库位置")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string address { get; set; }

       /// <summary>
       ///创建时间
       /// </summary>
       [Display(Name ="创建时间")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string create_time { get; set; }

       /// <summary>
       ///状态，0启用，1禁用
       /// </summary>
       [Display(Name ="状态，0启用，1禁用")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? status { get; set; }

       /// <summary>
       ///仓库类型，1原料库，2成品库，3半成品库，4下料库
       /// </summary>
       [Display(Name ="仓库类型，1原料库，2成品库，3半成品库，4下料库")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? type { get; set; }

       /// <summary>
       ///备注
       /// </summary>
       [Display(Name ="备注")]
       [Column(TypeName="nvarchar(max)")]
       [Editable(true)]
       public string remark { get; set; }

       /// <summary>
       ///绑定工序Id
       /// </summary>
       [Display(Name ="绑定工序Id")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string GongXuId { get; set; }

       /// <summary>
       ///绑定工序Name
       /// </summary>
       [Display(Name ="绑定工序Name")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string GongXuName { get; set; }

       
    }
}